import Views from "../../views/index.vue";
import type { RouteLocationNormalized, NavigationGuardNext } from "vue-router";


const route = [
    {
        path: "/useMixin",
        name: "useMixin",
        component: Views,
        redirect: "/useMixin/useMixin",
        meta: { title: "mixin语法", icon: "el-icon-table-lamp" },
        children: [
            {
                path: "useMixin",
                name: "useMixin-useMixin",
                component: () => import("../../pages/useMixin/index.vue"),
                meta: { title: "mixin语法" },
                beforeEnter: (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => {
                    console.log("beforeEnter slot page", { to, from });
                    next();
                },
            },
        ],
    },
];

export default route;
